package p.sunmes.les.action;

import com.badlogic.gdx.scenes.scene2d.Action;

import p.sunmes.les.managers.SoundM;

public class PlaySoundEffectAction extends Action {
	String sound;

	public PlaySoundEffectAction(String sound) {
		this.sound = sound;
	}

	@Override
	public boolean act(float delta) {
		SoundM.instance().playSoundEffect(sound);
		return true;
	}

	public static PlaySoundEffectAction create(String sound) {
		PlaySoundEffectAction a = new PlaySoundEffectAction(sound);
		return a;
	}

}
